﻿<UserControl x:Class="EzDesk.DesktopClient.View.TaskView"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             mc:Ignorable="d" 
             d:DesignHeight="300" d:DesignWidth="300">
    <Border  ToolTip="{Binding TaskModel.Description}" Cursor="Hand" CornerRadius="5" Margin="5"  MouseLeftButtonDown="Border_MouseLeftButtonDown">
        <Border.Style>
            <Style TargetType="{x:Type Border}">
                <Style.Triggers>
                    <Trigger Property="IsMouseOver" Value="True">
                        <Setter Property="Background" Value="{StaticResource SelectedBackgroundBrush}"></Setter>
                    </Trigger>
                </Style.Triggers>
            </Style>
        </Border.Style>
        <StackPanel>
            <Image Width="58" Source="{StaticResource TaskDefaultIcon}"></Image>
            <TextBlock  HorizontalAlignment="Center" Text="{Binding TaskModel.Title}"></TextBlock>
        </StackPanel>
    </Border>
</UserControl>
